<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', 'HomeController@index');

Route::auth();

Route::post('picture', 'EmailController@picture');

Route::group(['prefix' => 'email','middleware' => 'auth'], function()
{
    Route::get('/', 'EmailController@index');
    Route::get('write', 'EmailController@write');
    Route::post('write', 'EmailController@send');
    //收件箱功能
    Route::get('collection', 'EmailController@collectionList');
    //发件箱
    Route::get('outbox', 'EmailController@outboxList');

    Route::get('show/{messageid}', 'EmailController@show');
});

